package com.ruoyi.house_sale.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收款管理对象 finance
 * 
 * @author ruoyi
 * @date 2022-04-08
 */
public class Finance extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private BigDecimal totalMoney;
    private BigDecimal yfmoney;
    private String custname;
    private String housename;
    private String ticketname;
    private BigDecimal totalmoney;

    public String getCustname() {
        return custname;
    }

    public void setCustname(String custname) {
        this.custname = custname;
    }

    public String getHousename() {
        return housename;
    }

    public void setHousename(String housename) {
        this.housename = housename;
    }

    public String getTicketname() {
        return ticketname;
    }

    public void setTicketname(String ticketname) {
        this.ticketname = ticketname;
    }

    public BigDecimal getTotalmoney() {
        return totalmoney;
    }

    public void setTotalmoney(BigDecimal totalmoney) {
        this.totalmoney = totalmoney;
    }

    /** 编号 */
    private Long financeid;

    /** 购买房产编号（关联BuyHourse表） */
    @Excel(name = "购买房产编号", readConverterExp = "关=联BuyHourse表")
    private Long buyid;

    /** 票据本（关联票据管理表） */
    @Excel(name = "票据本", readConverterExp = "关=联票据管理表")
    private Long ticketno;

    /** 票据本编号 */
    @Excel(name = "票据本编号")
    private String ticketflow;

    /** 收款方式类别(关联付款方式表） */
    @Excel(name = "收款方式类别(关联付款方式表）")
    private String paidtypeid;

    /** 收款金额 */
    @Excel(name = "收款金额")
    private BigDecimal paidmoney;

    /** 交款人 */
    @Excel(name = "交款人")
    private String paidperson;

    /** 收款类别（关联收款类别表） */
    @Excel(name = "收款类别", readConverterExp = "关=联收款类别表")
    private String paidsortid;

    /** 入账银行(从公司银行账户表取值) */
    @Excel(name = "入账银行(从公司银行账户表取值)")
    private String inbank;

    /** 入账账号(从公司银行账户表取值) */
    @Excel(name = "入账账号(从公司银行账户表取值)")
    private String bankaccount;

    /** 出账银行 */
    @Excel(name = "出账银行")
    private String outbank;

    /** 相关凭证号 */
    @Excel(name = "相关凭证号")
    private String warrant;

    /** 交款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paidtime;

    /** 到账日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到账日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paidintime;

    /** 是否有效（有效，作废） */
    @Excel(name = "是否有效", readConverterExp = "有=效，作废")
    private String invalid;

    /** 操作人（session取值，登录账号） */
    @Excel(name = "操作人", readConverterExp = "s=ession取值，登录账号")
    private String userid;

    /** 录入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date oprtime;

    /** 操作类别（收款，付款） */
    @Excel(name = "操作类别", readConverterExp = "收=款，付款")
    private String oprtype;

    public void setFinanceid(Long financeid) 
    {
        this.financeid = financeid;
    }

    public BigDecimal getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }

    public BigDecimal getYfmoney() {
        return yfmoney;
    }

    public void setYfmoney(BigDecimal yfmoney) {
        this.yfmoney = yfmoney;
    }

    public Long getFinanceid()
    {
        return financeid;
    }
    public void setBuyid(Long buyid) 
    {
        this.buyid = buyid;
    }

    public Long getBuyid() 
    {
        return buyid;
    }
    public void setTicketno(Long ticketno) 
    {
        this.ticketno = ticketno;
    }

    public Long getTicketno() 
    {
        return ticketno;
    }
    public void setTicketflow(String ticketflow) 
    {
        this.ticketflow = ticketflow;
    }

    public String getTicketflow() 
    {
        return ticketflow;
    }
    public void setPaidtypeid(String paidtypeid) 
    {
        this.paidtypeid = paidtypeid;
    }

    public String getPaidtypeid() 
    {
        return paidtypeid;
    }
    public void setPaidmoney(BigDecimal paidmoney) 
    {
        this.paidmoney = paidmoney;
    }

    public BigDecimal getPaidmoney() 
    {
        return paidmoney;
    }
    public void setPaidperson(String paidperson) 
    {
        this.paidperson = paidperson;
    }

    public String getPaidperson() 
    {
        return paidperson;
    }
    public void setPaidsortid(String paidsortid) 
    {
        this.paidsortid = paidsortid;
    }

    public String getPaidsortid() 
    {
        return paidsortid;
    }
    public void setInbank(String inbank) 
    {
        this.inbank = inbank;
    }

    public String getInbank() 
    {
        return inbank;
    }
    public void setBankaccount(String bankaccount) 
    {
        this.bankaccount = bankaccount;
    }

    public String getBankaccount() 
    {
        return bankaccount;
    }
    public void setOutbank(String outbank) 
    {
        this.outbank = outbank;
    }

    public String getOutbank() 
    {
        return outbank;
    }
    public void setWarrant(String warrant) 
    {
        this.warrant = warrant;
    }

    public String getWarrant() 
    {
        return warrant;
    }
    public void setPaidtime(Date paidtime) 
    {
        this.paidtime = paidtime;
    }

    public Date getPaidtime() 
    {
        return paidtime;
    }
    public void setPaidintime(Date paidintime) 
    {
        this.paidintime = paidintime;
    }

    public Date getPaidintime() 
    {
        return paidintime;
    }
    public void setInvalid(String invalid) 
    {
        this.invalid = invalid;
    }

    public String getInvalid() 
    {
        return invalid;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setOprtime(Date oprtime) 
    {
        this.oprtime = oprtime;
    }

    public Date getOprtime() 
    {
        return oprtime;
    }
    public void setOprtype(String oprtype) 
    {
        this.oprtype = oprtype;
    }

    public String getOprtype() 
    {
        return oprtype;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("totalMoney", getTotalMoney())
                .append("yfmoney", getYfmoney())
                .append("custname", getCustname())
                .append("housename", getHousename())
                .append("ticketname", getTicketname())
                .append("totalmoney", getTotalmoney())
            .append("financeid", getFinanceid())
            .append("buyid", getBuyid())
            .append("ticketno", getTicketno())
            .append("ticketflow", getTicketflow())
            .append("paidtypeid", getPaidtypeid())
            .append("paidmoney", getPaidmoney())
            .append("paidperson", getPaidperson())
            .append("paidsortid", getPaidsortid())
            .append("inbank", getInbank())
            .append("bankaccount", getBankaccount())
            .append("outbank", getOutbank())
            .append("warrant", getWarrant())
            .append("paidtime", getPaidtime())
            .append("paidintime", getPaidintime())
            .append("invalid", getInvalid())
            .append("userid", getUserid())
            .append("oprtime", getOprtime())
            .append("oprtype", getOprtype())
            .toString();
    }
}
